package com.jeesite.modules.announcement.service;

import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.announcement.entity.Announcement;
import com.jeesite.modules.announcement.dao.AnnouncementDao;

/**
 * announcementService
 * @author cele
 * @version 2025-08-20
 */
@Service
public class AnnouncementService extends CrudService<AnnouncementDao, Announcement> {
	
	/**
	 * 获取单条数据
	 * @param announcement
	 * @return
	 */
	@Override
	public Announcement get(Announcement announcement) {
		return super.get(announcement);
	}
	
	/**
	 * 查询分页数据
	 * @param announcement 查询条件
	 * @param announcement page 分页对象
	 * @return
	 */
	@Override
	public Page<Announcement> findPage(Announcement announcement) {
		return super.findPage(announcement);
	}
	
	/**
	 * 查询列表数据
	 * @param announcement
	 * @return
	 */
	@Override
	public List<Announcement> findList(Announcement announcement) {
		return super.findList(announcement);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param announcement
	 */
	@Override
	@Transactional
	public void save(Announcement announcement) {
		super.save(announcement);
	}
	
	/**
	 * 更新状态
	 * @param announcement
	 */
	@Override
	@Transactional
	public void updateStatus(Announcement announcement) {
		super.updateStatus(announcement);
	}
	
	/**
	 * 删除数据
	 * @param announcement
	 */
	@Override
	@Transactional
	public void delete(Announcement announcement) {
		super.delete(announcement);
	}
	
}